import java.util.Date;

/**
 * @Author: WangYongGan
 * @Date: 2021/11/12 21:34
 * @Description:
 */
public class Date1 {
    public static void main(String[] args) throws InterruptedException {
        Date date=new Date();
        Thread.sleep(2000);
        Date date1=new Date();
        long l = date1.getTime() - date.getTime();
        System.out.println(l/1000);
    }
}
